//
//  WmcBaseItemCell.swift
//  YPWatermarkCamera
//
//  Created by Json on 2023/7/21.
//

import UIKit

class WmcBaseItemCell: WmcBaseTableCell {

    var item: WmcBaseItem = .init() {
        didSet {
            didSetItem()
        }
    }

    override func makeUI() {
        super.makeUI()
        titleLabel.textColor = .wmc_grayH2_323233
        titleLabel.font = 17.wmc_font
        addLineView()
    }
    
    
    func didSetItem() {}
}

extension WmcBaseItemCell {
    
    func renderTitle() {
        titleLabel.text = item.title
    }
    
    func addLineView() {
        addSubview(lineView)
        lineView.snp.makeConstraints { make in
            make.left.equalTo(Wmc_standardEdge.left)
            make.right.equalTo(-Wmc_standardEdge.right)
            make.bottom.equalToSuperview()
            make.height.equalTo(0.5)
        }
    }
    
    
}
